package com.wanxi.test;

import java.util.Random;

public class PalyDice {

    public static void main(String[] args) {
        Random random = new Random();
        int num = 1;
        while (true) {
            if (num % 6 != 0) {
                for (int i = 0; i < 3; i++) {
                    System.out.print(random.nextInt(6) + 1);
                }
            }
                if (num % 6 == 0) {
                    int a = random.nextInt(6) + 1;
                    for (int i = 0; i < 3; i++) {
                        System.out.print(a);
                    }
                    System.out.println();
                }
                System.out.println();
                num++;
                if (num == 100) {
                    break;
                }
            }
        }
    }

